package com.ruixi.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruixi.domain.User;
import com.ruixi.mapper.UserMapper;
import com.ruixi.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Created by lrzg
 * @Date 2022/8/10 14:15
 * @Description TODO
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getAllList() {
        return userMapper.getAllList();
    }

    @Override
    public User getUserById(int id) {
        return userMapper.getUserById(id);
    }
}
